import axios from "axios"

const src="/api/upload";

export function imageLoad(Data){
    return axios.post(src+"/image",Data, {
        'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
    });
}

export function imageUploadArticle(id,ids){
    return axios.post(src+"/image/"+id,ids);
}

export function imageList(){
    return axios.get(src+"/image/list");
}

export function imageDelete(names){
    return axios.delete(src+'/image',{data: names});
}

export function imageGet(name){
    return axios.get(src+'/'+name);
}
